package com.example.domain;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import com.example.entity.User;

@Mapper
@Component(value="userDao")
public interface UserDao
{
    //登录功能接口
    public User Login(@Param("username")String username,
                      @Param("password")String password);
    //注册功能接口//
    void register(User user);
}

